<?php /* УТФ-8:fix */

class SPIv
{
    static private $instances = array();

    static public function I( $module_id )
    {
        if( isset( self::$instances[$module_id] ) === false )
        {
            $classname = "SPIview__{$module_id}";

            if( class_exists( $classname ) === false )
            {
                return false;
            }

            self::$instances[$module_id] = new $classname;
        }

        return self::$instances[$module_id];
    }
}

class SPIview__dummy extends SPI__dummy
{
    protected $MODEL_ID;

    public function __construct()
    {
        $this->MODEL_ID = str_replace( 'SPIview__', '', get_class( $this ) );
    }
}
